package org.oos;

import java.util.logging.Handler;
import java.util.logging.LogRecord;

public class MockHandler extends Handler
{
    
    private String message; 

    @Override
    public void close() throws SecurityException
    {
	// Ignored
    }

    @Override
    public void flush()
    {
	// Ignored
    }

    @Override
    public void publish(LogRecord record)
    {
	message = record.getMessage();
    }
    
    public String popMessage()
    {
	String tmp = message;
	message = null;
	return tmp;
    }

}
